package com.tiles.service.Impl;

import com.tiles.entity.TbDirection;
import com.tiles.entity.TbProfession;
import com.tiles.mapper.DirectionMapper;
import com.tiles.mapper.ProfessionMapper;
import com.tiles.mapper.StudentMapper;
import com.tiles.service.ProfessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;
@Service("professionService")
public class ProfessionServiceImp implements ProfessionService {
    @Autowired
    private DirectionMapper mapper;
    @Autowired
    private ProfessionMapper professionMapper;

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<TbDirection> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public List<TbProfession> selectProfessionAll(Example example) {
        return professionMapper.selectByExample(example);
    }

    @Override
    public List<TbProfession> selectByPid(Example example) {
        return professionMapper.selectByExample(example);
    }

    @Override
    public List<TbProfession> ProfessionAll() {
        return professionMapper.selectAll();
    }

}
